package com.kingint.web.sys.service;

import com.kingint.mbg.dto.UmsPermissionNode;
import com.kingint.mbg.sys.entity.UmsPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingint.web.domain.Tree;

import java.util.List;

/**
 * <p>
 * 后台用户权限表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-09-18
 */
public interface UmsPermissionService extends IService<UmsPermission> {

    /**
     * 以层级结构返回所有权限
     * @return
     */
    List<UmsPermissionNode> treeList();

    List<Tree<UmsPermission>> getPermissionsByUserId(Long id);
}
